const reducer = (state, action) => {
    switch (action.type) {
        case "IncreaseTitle":
            return Object.assign({}, state, {
                title: `${state.title}-${state.title}`
            })
        case "ReceiveGitApis":
            return Object.assign({}, state, {
                gitApis: action.data
            })
        default:
            return state;
    }
}

export default reducer;